package com.lfs.market.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lfs.market.model.dto.SystemCommentPageDto;
import com.lfs.market.model.entity.Comment;

import java.util.HashMap;

public interface CommentService extends IService<Comment> {
    /**
     * 根据商品id获取评论信息
     *
     * @param productId
     * @return
     */
    HashMap getCommentList(String productId);

    /**
     * 保存评论信息
     *
     * @param
     * @return
     */
    void saveComment(String productId, String parentId, String content);

    Page getCommentPage(SystemCommentPageDto dto);
}
